<?php
namespace Admin\Controller;
use Think\Controller;
/**
* 商家管理
*/
class  ShopController extends AdminBaseController
{
	
	//商家展示
	public function index(){
		$shop = D('shop');
		$data = $shop->select();
		$this->assign('data',$data);
		$this->display();
	}

	//商家添加
	public function add(){
		echo 222;
	}

	//商家编辑
	public function edit($id){
		echo $id;
	}

	//商家列表接口
	public function list(){
		$shop = D('shop');
		$data = $shop->select();
		echo json_encode($data);
	}
}
